import requests
from lxml import etree
url = 'http://book.zongheng.com/store.html'
response = requests.get(url)
print(response.status_code)

html = response.text

ehtml = etree.HTML(html)

xtitle = ehtml.xpath("//div[@class='bookname']/a/text()")
print(xtitle)

xtitle = ehtml.xpath("//div[@class='bookilnk']/a[1]/text()")
print(xtitle)

xtitle = ehtml.xpath("//div[@class='bookilnk']/a[2]/text()")
print(xtitle)

xtitle = ehtml.xpath("//div[@class='bookilnk']/span[2]/text()")
for i in xtitle:
    print(i[36:47])

xtitle = ehtml.xpath("//div[@class='bookimg']/a//@src")
print(xtitle)
